package net.wangds.yunz.auth.viewmodel.form;

import lombok.*;
import lombok.experimental.SuperBuilder;

@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
public class LoginForm extends VerifyCodeForm {

    /**
     * 登录方式.
     * <ul>
     *     <li>username:用户名/密码方式登录；</li>
     *     <li>sms:短信验证码登录.</li>
     * </ul>
     */
    @Getter
    @Setter
    private String method;

    /**
     * 用户名.
     */
    @Getter
    @Setter
    private String loginname;

    /**
     * 密码.
     */
    @Getter
    @Setter
    private String password;


    /**
     * 电话号码.
     */
    @Getter
    @Setter
    private String phone;

    /**
     * 短信验证码.
     */
    @Getter
    @Setter
    private String smsCode;

    /**
     * 登录时间戳.
     */
    @Getter
    @Setter
    private long tm;

    @Getter
    @Setter
    @Builder.Default
    private boolean console = false;

}
